package com.xm.service.background;

import com.xm.dao.background.DepartmentsDao;
import com.xm.entity.Departments;

import java.util.List;

/**
 * 职称Service
 * @author 陈盼
 * @date 2024-01-05 上午 09:20
 */
public class DepartmentsService {
   private final DepartmentsDao dao=new DepartmentsDao();
    /**
     * 查询全部Menu
     * @return List集合
     */
    public List<Departments> getAll() {
        return dao.findAll();
    }

}
